package com.wangjiang.k8s.jvm.test.controller;

import com.wangjiang.k8s.jvm.test.config.ProjectConfig;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class VersionController {

    @Autowired
    private ProjectConfig projectConfig;

    @GetMapping("version")
    public String getVersion() {
        return projectConfig.getVersion();
    }
}
